{% extends 'base.html' %}
{% block app_content %}
    <table width="100%  " height="288" border="0" align="center"
           cellpadding="0"
           cellspacing="0" bgcolor="#FFFFFF">
        <tr>
            <td align="center" valign="top">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="10" colspan="4">&nbsp;<hr
                                style=" height:1px;border:none;border-top:1px dotted #185598;"/>
                        </td>
                    </tr>
                    <table style="font-size:15px;" width="95%" height="30"
                           border="0" cellpadding="0"
                           cellspacing="0">
                        <tr>
                            <td valign="top">
                                <table
                                        width="100%" height="30" border="1"
                                        cellpadding="0" cellspacing="0"
                                        bordercolor="#FFFFFF"
                                        bordercolordark="#FFFFFF"
                                        bordercolorlight="#E6E6E6">
                                      <tr bgcolor="#eeeeee">
                                        <th>用例名称</th>
                                        <th>测试结果</th>
                                        <th>评审结果</th>
                                        <th>评审时间</th>
                                        <th>日志</th>
                                        <th>备注</th>
                                      </tr>
                                    <tbody>
					    {% for d in return_datas %}
                                            <tr>
                                                <td width="18%">{{ d.testcase_name }}</td>
                                                <td width="15%">{{ d.test_result }}</td>
                                                <td width="15%">{{ d.review_result }}</td>
                                                <td width="22%">{{ d.create_time }}</td>
                                                <td width="15%"><a href="/hardware/review/{{ d.menu_id }}/{{ d.hardware_id }}/{{ d.taskid }}/{{ d.job_id }}">查看日志</a></td>
                                                <td width="15%">{{ d.review_comments }}</td>
                                            </tr>
					    {% endfor %}
                                    </tbody>
                                </table>
				{% if pages %}
                                    <tbody>
                                    <tr>
                                        <td height="30" align="right">
                                            当前页数：[{{ pagination.page }}/{{ pages }}]&nbsp;
                                            <a href="{{ url_for('home.task_review',hardware_id=hardware_id,task_id=task_id, page=1) }}">第一页</a>
                                            {% if pagination.has_prev %}
                                                <a href="{{ url_for('home.task_review',hardware_id=hardware_id,task_id=task_id, page=pagination.page-1) }}">上一页</a>
                                            {% endif %}
                                            {% if pagination.has_next %} 　
                                                <a href="{{ url_for('home.task_review',hardware_id=hardware_id, task_id=task_id,page=pagination.page+1) }}">下一页</a>
                                            {% endif %}　
                                                <a href="{{ url_for('home.task_review',hardware_id=hardware_id,task_id=task_id, page=pages) }}">最后一页&nbsp;</a>
                                        </td>
                                    </tr>
                                    </tbody>
                                {% endif %}
                            </td>
                        </tr>
                    </table>
                </table>
            </td>
        </tr>
    </table>
{% endblock %}
